<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<jsp:include page="../../common/jsp/taglibs.jsp"/>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=2.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>产品详情</title>
    <jsp:include page="../../common/jsp/head.jsp"/>
    <link href="${ctx}css/public.css" rel="stylesheet" type="text/css"/>
    <link href="${ctx}css/detail.css" rel="stylesheet" type="text/css"/>
    <style>
        .layui-form-label{
            width: 85px;
        }
    </style>
</head>
<body>
<form class="layui-form">
    <table class="layui-table">
        <tr>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">生产批次：</label>
                    <div class="layui-input-inline infoDiv">
                        <s:property value="batch"/>
                    </div>
                </div>
            </td>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">产品类型：</label>
                    <div class="layui-input-inline infoDiv">
                        <s:property value="productType"/>
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">产品编号：</label>
                    <div class="layui-input-inline infoDiv">
                        <s:property value="product.code"/>
                    </div>
                </div>
            </td>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">产品名称：</label>
                    <div class="layui-input-inline infoDiv">
                        <s:property value="product.name"/>
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">焊接：</label>
                    <div class="layui-input-inline infoDiv">
                        <s:property value="weldName"/>
                    </div>
                </div>
            </td>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">焊接时间：</label>
                    <div class="layui-input-inline infoDiv">
                        <s:property value="product.weldTime"/>
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">组装：</label>
                    <div class="layui-input-inline infoDiv">
                        <s:property value="assembleName"/>
                    </div>
                </div>
            </td>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">组装时间：</label>
                    <div class="layui-input-inline infoDiv">
                        <s:property value="product.assembleTime"/>
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">调试：</label>
                    <div class="layui-input-inline infoDiv">
                        <s:property value="debugName"/>
                    </div>
                </div>
            </td>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">调试时间：</label>
                    <div class="layui-input-inline infoDiv">
                        <s:property value="product.debugTime"/>
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">质检：</label>
                    <div class="layui-input-inline infoDiv">
                        <s:property value="checkName"/>
                    </div>
                </div>
            </td>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">质检时间：</label>
                    <div class="layui-input-inline infoDiv">
                        <s:property value="product.checkTime"/>
                    </div>
                </div>
            </td>
        </tr>

        <tr>
            <s:if test="product.checkResult==2">
                <td>
                    <div class="layui-form-item">
                        <label class="layui-form-label">质检结果：</label>
                        <div class="layui-input-inline infoDiv">
                            不合格
                        </div>
                    </div>
                </td>
                <td>
                    <div class="layui-form-item">
                        <label class="layui-form-label">原因：</label>
                        <div class="layui-input-inline infoDiv">
                            <s:property value="reason"/>
                        </div>
                    </div>
                </td>
            </s:if>
            <s:else>
                <td colspan="2">
                    <div class="layui-form-item">
                        <label class="layui-form-label">质检结果：</label>
                        <div class="layui-input-inline infoDiv">
                            <s:if test="product.checkResult==1">合格</s:if><s:else>未检测</s:else>
                        </div>
                    </div>
                </td>
            </s:else>
        </tr>
        <tr>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">库存状态：</label>
                    <div class="layui-input-inline infoDiv">
                        <s:if test="product.stockState==0">入库</s:if>
                        <s:elseif test="product.stockState==1">出库</s:elseif>
                        <s:else> </s:else>
                    </div>
                </div>
            </td>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">出入库时间：</label>
                    <div class="layui-input-inline infoDiv">
                        <s:if test="product.stockState!=null"><s:property value="product.outOrInTime"/></s:if>
                        <s:else> </s:else>
                    </div>
                </div>
            </td>
        </tr>
    </table>
</form>
</body>
</html>
